import { createStore } from "vuex";

<<<<<<< HEAD
export default createStore({
  state: {},
  mutations: {},
=======
let defaultCity='杭州'

if (localStorage.city) {
	defaultCity=localStorage.city
}
export default createStore({
  state: {
	  cname:'',
	  cityName:defaultCity
  },
  mutations: {
	  update(state,val){
		  state.cname=val
	  },
	  changeCity(state,val){
		  state.cityName=val
		  localStorage.city=val
	  }
  },
>>>>>>> dfbcefb (游侠客项目)
  actions: {},
  modules: {},
});
